package com.example.common.base;

import com.example.common.network.RetrofitManager;
import com.example.common.utils.LogUtil;

public abstract class BaseRepository {
    
    protected RetrofitManager retrofitManager;
    
    public BaseRepository() {
        retrofitManager = RetrofitManager.getInstance();
        LogUtil.d(getClass().getSimpleName(), "Repository created");
    }
    
    protected <T> T createService(Class<T> serviceClass) {
        return retrofitManager.createService(serviceClass);
    }
}